<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div><span id="a"></span></div>
		<div><span id="b"></span></div>
	</body>
	<script type="text/javascript">
		//jq--ajax
		//https://p.3.cn/prices/mgets?skuIds=J_100011674332
		$.ajax({
			type:"POST",
			url:"https://p.3.cn/prices/mgets?",
			data:{//为链接内的参数
				"skuIds":"J_100011674332",
			},
			contentType:"application/json;charset=utf-8",
			dataType:"jsonp",
			success:function(data){
				console.log("ok")
				console.log(data)
				
				var item=data[0]
				$("#a").text(item.id)
				
				$("#b").text(item.p)
				
			},
			error(e) {
				console.log("asfdsfd")
				console.log(e)
			}
		})
	</script>
</html>
